package com.wecan.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author liuzhihao
 * @Date 2022.01.18
 * @Version ${version}
 * @Description ${description}
 */
public enum EnableStatus {
    DISABLE(0, "禁用"),
    ENABLE(1, "启用");

    @EnumValue
    @JsonValue
    private final int code;

    private final String desc;

    EnableStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
